home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / shells / tcshsrc.zoo / tcsh / README.ST < prev    next >
Encoding:
Text File  |  1992-10-01  |  7.3 KB  |  149 lines

  1. This of a port of tcsh to the Atari ST. Atari ST specific features
  2. and limitations follow the original copyright notice:
  3. --------------------------------------------------------------------
  4. Copyright (c) 1980, 1991 The Regents of the University of California.
  5. All rights reserved.
  6.  
  7. Redistribution and use in source and binary forms, with or without
  8. modification, are permitted provided that the following conditions
  9. are met:
  10. 1. Redistributions of source code must retain the above copyright
  11.    notice, this list of conditions and the following disclaimer.
  12. 2. Redistributions in binary form must reproduce the above copyright
  13.    notice, this list of conditions and the following disclaimer in the
  14.    documentation and/or other materials provided with the distribution.
  15. 3. All advertising materials mentioning features or use of this software
  16.    must display the following acknowledgement:
  17.     This product includes software developed by the University of
  18.     California, Berkeley and its contributors.
  19. 4. Neither the name of the University nor the names of its contributors
  20.    may be used to endorse or promote products derived from this software
  21.    without specific prior written permission.
  22.  
  23. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  24. ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  25. IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  26. ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  27. FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  28. DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  29. OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  30. HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  31. LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  32. OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  33. SUCH DAMAGE.
  34. --------------------------------------------------------------------------
  35.  
  36. Here is a port of tcsh 6.00.02 to TOS and MiNT. I've mostly tested (and
  37. used) it under MiNT, so it may still have problems when run under plain
  38. TOS. Also, under TOS many features (pipes, job control, and
  39. background processes, for example) are unavailable.
  40.  
  41. Under MiNT, pretty much all features of the BSD version are present.
  42. There are some ST specific enhancements and limitations, as follows:
  43.  
  44. (1) It's possible to redefine the escape character so that it isn't
  45.     backslash (\); this makes using TOS style paths possible. This
  46.     is done by setting the variable `escchar' to the new escape
  47.     character (e.g. `set escchar=^' will work nicely).
  48.  
  49. (2) If the escape character has been redefined, it's possible to tell
  50.     tcsh that you _prefer_ backslash to normal slash, so that in
  51.     file name completion (and in the output of ls-F) \ is printed after
  52.     directories instead of /; this is done by setting the variable
  53.     `dosslashes' to any value at all.
  54.  
  55. (3) The PATH environment variable must be in standard Unix form, i.e.
  56.     colons (:) are used to separate the elements of the path. This conflicts
  57.     with GEMDOS' use of the colon as a drive indicator. To get around this,
  58.     you may use the prefix `/dev/a/' to stand for drive a:, i.e. instead
  59.     of
  60.     setenv PATH .,c:\bin,d:\bin
  61.     use
  62.     setenv PATH .:/dev/c/bin:/dev/d/bin.
  63.     Note that forward slashes must be used to separate directory names,
  64.     unless the escape character has been changed (see (1) above).
  65.  
  66.     tcsh will automatically convert the PATH variable into a format used
  67.     by gulam and many other ST shells before executing another program.
  68.     The steps in this translation are:
  69.     (1) colons are converted to commas
  70.     (2) `/dev/c/' prefixes are converted to `c:\' drive letters
  71.     (3) forward slashes are converted to backslashes
  72.     Thus, if the command
  73.     setenv PATH .:/dev/d/bin:/dev/e/mint/bin
  74.     is given to tcsh, programs run from tcsh will see the string
  75.     PATH=.,d:\bin,e:\mint\bin
  76.     in their environments.
  77.  
  78. (4) When searching for a program, tcsh will automatically add the
  79.     prefixes .ttp, .prg, .tos, .gtp, and .csh, in that order, to the
  80.     command name if a file with the exact name given is not found.
  81.     In other words, it is possible to type just `ls' to execute
  82.     the program `ls.ttp'. If a `.csh' extension is found, tcsh
  83.     executes another copy of itself (it expects the variable `shell'
  84.     to point to itself) with this file as input.
  85.  
  86.     The shell variable `suffixes' contains the list of suffixes searched
  87.     for; if you wish to change the order of the search, or add different
  88.     suffixes to the search, you may change this variable.
  89.  
  90. (5) tcsh has a fixed amount of memory available for its use (by default,
  91.     128K). This may be modified by the `fixstk' program that comes
  92.     with the gcc utilities. Typing `fixstk -96000 tcsh.prg', for example,
  93.     reduces the amount of memory available for tcsh to 96000 bytes.
  94.     Note that the size given to `fixstk' must be the *negative* of the number
  95.     of bytes you wish to give to tcsh.
  96.  
  97.     The fixed memory size makes the use of `alias precmd' somewhat unwise,
  98.     because of the `precmd' memory hole noted in the tcsh docs.
  99.  
  100. (6) If no TERMCAP environment variable is set, and if the file \ETC\TERMCAP
  101.     is not found on the current drive, then tcsh ignores any setting
  102.     of the `term' or `TERM' variables and always assumes that it is
  103.     running on an 80x25 atari ST console.
  104.  
  105. (7) If no HOME environment variable is set when tcsh is started, then
  106.     the variable "home" is set to the current directory and HOME remains
  107.     undefined.
  108.  
  109. (8) If tcsh.prg is run from the desktop or from a program that does
  110.     not follow the extended ARGV standard, it will act like a login
  111.     shell (i.e. execute $HOME\LOGIN.CSH, and do other login type
  112.     activities).
  113.  
  114. (9) The standard file names that tcsh looks for have been modified
  115.     to conform with the 8 character base + 3 character extension
  116.     limits of GEMDOS, as follows:
  117.  
  118.       Unix name              Atari ST name
  119.     .history        history.csh
  120.     .cshdirs        cshdirs.csh
  121.     .login            login.csh
  122.     .logout            logout.csh
  123.     .tcshrc            tcsh.rc
  124.     .cshrc            csh.rc
  125.  
  126. (10) Under MiNT 0.93 or better, you can set the terminal so that the
  127.      cursor keys send standard vt52 escape sequences (do this with
  128.      "stty vt52"). Once this has been done, and appropriate keyboard
  129.      bindings have been set up (see the supplied `tcsh.rc' for
  130.      examples) the cursor keys may be used for editing, and the ALT
  131.      key will work as a meta key for the letters A-Z.
  132.  
  133.      If you're using an older version of MiNT, or not using MiNT at
  134.      all, the cursor keys won't work -- you'll have to learn the
  135.      alternate methods (e.g. ^P for previous line, ^N for next line)
  136.      or get a keyboard re-mapping program to map the cursor keys.
  137.  
  138. (11) Please see the files `csh.man' (the original csh documentation)
  139.      and `tcsh.man' (tcsh enhancements to csh) for further information.
  140.      These are in nroff format. `csh.man' uses a funny macro package;
  141.      it seems to be Berkeley specific, because I've been unable to
  142.      get nroff to work with it on my System V machine, nor does the
  143.      ST version of nroff understand it. Sorry; you'll have to read
  144.      it as plain ASCII and do the "translation" yourself!
  145.      
  146. Eric R. Smith
  147. Internet: eric.smith@uwo.ca
  148. GEnie: E.SMITH10
  149.